import requests

url = 'https://pss.bdstatic.com/static/superman/img/logo/logo_white-d0c9fe2af5.png'
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36'
}
resp = requests.get(url, headers=headers)
resp.encoding = 'utf-8'

with open('data/baidu_logo.png', 'wb') as f:
    f.write(resp.content)
    